#include<stdio.h>
#include<fcntl.h>
#include<unistd.h>

int main(int argc, char* argv[])
{
  int fd = open(argv[1], O_RDONLY);

  int newfd = dup(fd);

  printf("newfd = %d\n", newfd);

  return 0;
}
